#ifndef __MEIAN_H__
#define __MEIAN_H__
#include "rtthread.h"
#include "rf433.h"

typedef enum
{
	MSG_LOGOIN_ACK,
}msgAckTypeDef;

typedef enum{
	SysStu_Logoin = (0x01 << 0),  //系统登录
	SysStu_HomeArm = (0x01 << 1), //在家布防
	SysStu_OutArm = (0x01 << 2),  //外出布防
	SysStu_NoneArm = (0x01 << 3), //撤防
	SysStu_Alarm = (0x01 << 4),   //系统报警
}sysStatusDef;


typedef struct
{
	rt_uint8_t type;
	rt_uint16_t len;
	rt_uint8_t *data;
}ackMailDef;

typedef enum
{
	STA_None_GUARD = 2,  //撤防
	STA_HONE_GUARD = 1,  //在家布防
	STA_GOOUT_GUARD = 0, //外出布防
	STA_ADD_DEV = 3,     //添加设备
}WorkStatusDef;


typedef enum	
{
	DEVTYP_SWITCH = 0,//电器开关
	DEVTYP_FIRE_SENSOR = 1,//烟雾探测
	DEVTYP_WARTER_SENSOR = 2,//水侵探测
	DEVTYP_GAS_SENSOR = 3,//煤气探测
	DEVTYP_MOV_SENSOR = 4,//人体红外
	DEVTYP_REMOTE_CTL = 5,//遥控器
	DEVTYP_WLS_WARMING = 6,//无线警号
	DEVTYP_LIGHT = 7,//灯
	DEVTYP_CURTAIN = 8,//窗帘
	DEVTYP_TEMP = 9,//温度传感器
	DEVTYP_DOOR_SENSOR = 10,//门磁
	DEVTYP_RAY_SENSOR = 11,//对射
	DEVTYP_LOCK = 12,//门锁
	DEVTYP_CO_SENSOR = 13, //CO探测器
	DEVTYP_INFRADE_TRANSMIT = 14, //红外设备
	DEVTYP_WIND_LIGHT_RAIN = 15, //风光雨
	DEVTYP_BACKGOUND_MUSIC = 16, //背景音乐
	DEVTYP_PLUG = 17,//插座
	DEVTYP_E_WINDOW = 18,//电动窗
	DEVTYP_COLOR_LED = 19,//彩灯
	DEVTYP_LEVEL_LED = 20,//调光灯
	DEVTYP_COLOR_TEM_LED = 21,//色温灯
	DEVTYP_IAS_DEV = 22,//入侵设备
	DEVTYP_IR_DEV = 23,//红外转发
	DEVTYP_IR_CONTROL = 24,//红外遥控
	DEVTYP_EMERGENCY_BUTTOM = 25,//紧急按钮
	DEVTYP_SENCE_SWITCH = 26,//情景开关
	DEVTYP_LED_LOOP = 27,//灯带
	DEVTYP_LED_RAY = 28,//人体感应灯
	DEVTYP_FISH_FEED_DEV = 29,//喂鱼器
	DEVTYP_SENSOR = 30,//探测器
	DEVTYP_FSK_RGB_LED = 31,//FSK灯(RGB
	DEVTYP_IP_CAMERA = 32,//IPC
	DEVTYP_DOOR_BELL = 33,//门铃
	DEVTYP_KEY_BOARD = 34,//键盘
	DEVTYP_VIBRATION = 35,//震动传感器
	DEVTYP_GLASS_BREAK = 36,//玻璃破碎传感器
}subDevTypeDef;


rt_err_t rf333_msg_mail_send(rf433MeiAnDef *mail);

#endif
